<?php

include_once("core/controller.php");
include_once("core/versionHandler.php");
/**
 * This Controller returns the dispatcher (actions.php) data
 * @copyright inovia
 * @package oolime_manager
 *
 */
class formDispatcher extends Controller {

  function isLegitimate(){
    return true;
  }
  
  function actions(){
  
    include_once('core/libs/file.php');
    $config = new File("actions.php", "r");
    
    $contentNode = $this->response->doc->createElement("content");
    $contentNode->appendChild($this->response->doc->createTextNode($config->readAll()));
    $this->response->add($contentNode);  
    
    $versionH = new VersionHandler("");
    $this->response->add($versionH->getMyVersion());
    $dateNode = $this->response->doc->createElement("date");
    $dateNode->appendChild($this->response->doc->createTextNode(date("d/m/Y G:i")));
    $this->response->add($dateNode);  
    
		$this->response->setXSLT('views/manager/formDispatcher.xsl');
  }
  
  function defaultActions(){
  
  }
}
?>
